Ext.define('Frigoglass.view.wizard.WizardDialogPanel', {
	extend: 'Ext.panel.Panel',
	xtype: 'wizardpanel',
	defaults: {
		border: 0,
		padding: 15,
	},
	items: [{
		xtype: 'panel',
		height: 50,
	},{
		xtype: 'panel',
		height: 1,
		border: 1,
		padding: 0,
	},{
		xtype: 'panel',
		height: 238,
	}],
	constructor: function (cfg) {
		cfg.wizardConfig = Ext.merge({
			backButton: {
				disabled: true,
			},
			nextButton: {
				disabled: true,
			},
			cancelButton: {
				disabled: false,
			},
			backLayout: undefined,
			nextLayout: undefined,
		}, cfg.wizardConfig);
		return this.callParent(arguments);
	},
	initComponent: function () {
		var me = this;
		me.items[0] = Ext.merge(me.items[0], me.tpanel);
		me.items[2] = Ext.merge(me.items[2], me.bpanel);
		delete me.tpanel;
		delete me.bpanel;
		me.callParent(arguments);
	},
});